package com.qianduo.dao.impl;

import java.util.List;

import org.hibernate.Criteria;

import com.qianduo.dao.ICitiesDao;
import com.qianduo.po.Cities;
import com.qianduo.util.HibernateUtil;

@SuppressWarnings({ "finally", "unchecked" })
public class CitiesDaoImpl extends HibernateUtil implements ICitiesDao{	
	public List<Cities> getAllCities(){
		List<Cities> retList	= null;
		try{
			Criteria ca			= getSessionFactory().getCurrentSession().createCriteria(Cities.class);
			retList				= ca.list();
		}catch(Exception e){
			throw new Exception(className+" getAllCities",e);
		}finally{
			return retList;
		}
	}
	
	public boolean saveCities(Cities po){
		boolean ret		= false;
		try{
			
		}catch(Exception e){
			throw new Exception(className+" saveCities",e);
		}finally{
			return ret;
		}	
	}
}
